package com.circle.interests.biz.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.circle.interests.biz.dto.PrizeGameWinRecordTotalDto;
import com.circle.interests.biz.entity.PrizeGameWinRecord;
import com.circle.prize.library.api.dto.game.PrizeGameWinResultDto;
import com.circle.prize.library.api.dto.game.PrizeGameWriteOffResultDto;

/**
 * <p>
 * 中奖记录 服务类
 * </p>
 *
 * @author generator
 * @since 2021-12-17
 */
public interface IPrizeGameWinRecordService extends IService<PrizeGameWinRecord> {

    PrizeGameWinResultDto winPrize(Integer sceneType, String sceneId, String openId, String prizeCode, String orderCode, Integer amount);

    PrizeGameWriteOffResultDto writeOff(Integer sceneType, String sceneId, String openId, String phoneNumber, String orderCode, String remark);

    PrizeGameWriteOffResultDto winAndWriteOffPrize(Integer sceneType, String sceneId, String openId, String nickname, String payAppId, String payOpenId, String phoneNumber, String prizeCode,String orderCode, Integer amount, String remark);

    PrizeGameWinRecordTotalDto count(Integer sceneType, String sceneId, String prizeCode);

    PrizeGameWinRecord getByOrderCode(String orderCode);
}
